package com.woniuxy.direct.listener;

import com.woniuxy.po.TopicMail;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DirectListener2 {
    @RabbitListener(queues = "directQueue2", ackMode = "AUTO")
    public void directListener1(TopicMail topicMail) {
        System.out.println("直连交换机监听第2个队列："+topicMail);
    }
}
